#include "Blocks/LeavesBlock.h"
#include "Blocks/StickBlock.h"

namespace PocketSurvival
{
	LeavesBlock::LeavesBlock()
	{
		addInheritance(this);
	}

    void LeavesBlock::getDropValues(int32_t oldValue, int32_t newValue, int32_t toolLevel, std::vector<BlockDropValue> &dropValues)
    {
		if (m_random.getBool(0.15f))
		{
			dropValues.emplace_back(StickBlock::Index(), 1);
		}
		else
		{
			Block::getDropValues(oldValue, newValue, toolLevel, dropValues);
		}
    }
} // namespace PocketSurvival
